﻿using System.Web.Mvc;
using MvcContrib.PortableAreas;

namespace BlueprintCssPortableArea.Areas.BlueprintCss
{
	public class BlueprintCssRegistration : PortableAreaRegistration
	{
		public const string Name = "BlueprintCss";

		public override string AreaName
		{
			get { return Name; }
		}

		public override void RegisterArea(AreaRegistrationContext context, IApplicationBus bus)
		{
			base.RegisterArea(context, bus);


			context.MapRoute("BlueprintCssPortableArea_ResourceRoute", "BlueprintCssPortableArea/css/{resourceName}",
			                 new {controller = "EmbeddedResource", action = "Index"},
			                 new[] {"MvcContrib.PortableAreas"});
		}
	}
}